package com.wuming.house.service;

import com.wuming.house.core.BusinessException;
import com.wuming.house.model.HouseComment;

import java.util.List;

/**
 * @author xuhuai
 * @createTime 2019/8/30 11:17
 * @Description:
 */
public interface HouseCommentService {

    List<HouseComment> selectHouseCommentsByPage(Integer minHouseScore, Integer maxHouseScore, Long houseId,Long userid, int pageIndex, int pageSize);

    int selectTotal(Integer minHouseScore, Integer maxHouseScore, Long houseId,Long userid);

    HouseComment selectHouseCommentById(Long id);

    void saveHouseComment(HouseComment houseComment);

    void modifyHouseComment(HouseComment houseComment);

    void delete(Long id);

    double getScoreByHouseComments(List<HouseComment> comments) throws BusinessException;

    void modifyHuifu(HouseComment houseComment);
}
